import { Module, NestModule, MiddlewareConsumer } from '@nestjs/common';
// import { MongooseModule } from '@nestjs/mongoose';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UserModule } from './modules/user/user.module'
import { LoggerMiddleware } from 'src/common/middleware/logger.middleware';
import { UserController } from './modules/user/user.controller';
import { AuthModule } from 'src/modules/Auth/auth.module';
import { EventsModule } from 'src/modules/Chat/chat.module';
// import { HttpStrategy } from 'src/share/strategy/http.strategy'

@Module({
  // imports: [MongooseModule.forRoot('mongodb://localhost/nest'), UserModule],
  imports: [UserModule, AuthModule, EventsModule]  
  // exports: [UserModule],
  // controllers: [AppController],
  // providers: [HttpStrategy]

})
export class AppModule {
  // configure(consumer: MiddlewareConsumer) {
  //   consumer.apply(LoggerMiddleware).forRoutes(UserController)
  // }
}
